<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');

$sessionid = session_id();

$strHtml = '<div id="browse_history">
<h3>BROWSE HISTORY</h3>
<div class="cons">';

if (isset($_SESSION['RELATED_PRODUCTS'][$sessionid]) && is_array($_SESSION['RELATED_PRODUCTS'][$sessionid]))
{
	$arrCatalogRelated = $_SESSION['RELATED_PRODUCTS'][$sessionid];
	$arrCatalogRelated = array_reverse($arrCatalogRelated);
	
	$strHtml .= '<ul id="mycarousel2" class="jcarousel-skin-tango">';
	foreach ($arrCatalogRelated as $arrRelated)
	{
		$strHtml .= '<li><a href="product.html?category=' .$arrRelated['category'] . '&id='.$arrRelated['id'].'" title=""><img src="image.php?src=' . $arrRelated['img'] . '&width=89&height=73" alt="' . $arrRelated['name'] . '" /></a></li>';
	}
	$strHtml .= '</ul>';
}
	
$strHtml .= '</div></div>';

echo $strHtml;

?>